# Generate a random number 0-f using the timer
gen_random_f:
	# grab a value from the timer
	lui $t0, 0xf060
	# mask the upper bits
	lw $t1, 0($t0)
	andi $t2, $t1, 0b0000000000000000000000000001111
	jr $31
	# result is stored in $v0
	move $v0, $t2		
gen_random_one:
	# grab a value from the timer
	lui $t0, 0xf060
	# mask the upper bits
	lw $t1, 0($t0)
	andi $t2, $t1, 0b0000000000000000000000000000001
	jr $31
	# result is stored in $v0
	move $v0, $t2		